package com.itWaiLong.AppException;


/**
 * 自定义枚举类
 */
public enum AppException {

    PING_LUN_SHI_BAI(1013,"评论失败"),
    QUAN_XIAN_BU_CU(1012,"您的权限不够"),
    TIAN_JIA_CHENG_GONG(1011,"添加失败！！！"),
    FEN_XIANG_CHENG_GONG(1010,"分享成功"),
    FU_ZE_REN_WEI_ZHU_CHE(1008,"负责人未注册或负责人id错误"),
    MEI_YOU_REN_HE_XIANG_MU(1007,"没有任何项目"),
    BIAN_JI_SHI_BAI(1006,"编辑失败"),
    MEI_YOU_SHU_JU(1005,"没有数据"),
    XIANG_MU_YI_CUN_ZAI(1004,"项目已存在"),
    DENG_LU_SHI_BAI(1001,"登录失败！！"),
    SHAN_CHU_SHI_BAI(1002,"删除失败"),
    YONG_HU_BU_CUN_ZAI(1009,"用户不存在"),
    MEI_YOU_GAI_XIANG_MU(1003,"没有该项目");

    private final int code;
    private final String message;

    /*
    * 构造方法
    */
    AppException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
